package com.mars.java8;

import java.util.HashMap;
import java.util.Map;

/**
 * author by: mars
 * Date: 2019/5/30 22:59
 * Description:
 */
public class MapDemo {

    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("name","kiki");
        map.put("hobby","tkd");
        map.put("nickname","litile kiki");

        // map-remove 迭代删除
        map.entrySet().removeIf(entry -> entry.getValue().equals("kiki"));

        System.out.println(map);
    }
}
